﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Listar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   
    <h2>Listar Producto</h2>

    <table>

    <tr>
    <th>
     <p align="center">
                <input type="submit" value="Nuevo" onclick="#" />
            </p>
    </th>
       
    
    </tr>

        <tr>
            <th class="wd8">
               Codigo
            </th>
            <th class="wd15">
                Descripcion
            </th>
           <th class="wd14">
                Categoria
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: item.CodContratante %>
            </td>
            <td>
                <%: item.NumDocContratante %>
            </td>
            <td>
                <%: item.RazonSocial %>
            </td>
         
            <td>
                <%: Html.ActionLink("Editar", "ContratanteBloqueoDetalle", new { id = item.CodContratante })%> |
                <%: Html.ActionLink("Eliminar", "ContratanteBloquear", new { id = item.CodContratante })%>
            </td>
        </tr>
    
    <% } %>

    </table>

</asp:Content>
